import { Suspense } from 'react'
import { createRoot } from 'react-dom/client'
import './index.css'
import App from './App.tsx'
import { RouterProvider } from 'react-router-dom'
import routes from './router/index.tsx'
import './locts/index.ts'
createRoot(document.getElementById('root')!).render(
  <Suspense fallback={<div>Loading...</div>}>
    <RouterProvider router={routes}></RouterProvider>
  </Suspense>,
)
